﻿using mozhi.smarterp.Finance.Enums;
using System;

namespace mozhi.smarterp.Finance.Ieps.Import
{
    public class ImportHandlerFactory
    {
        public static IImportHandler Instance(string moduleCode, IServiceProvider serviceProvider)
        {
            //if(moduleCode == ModuleCodeType.Customer)
            //    return new CustomerImportHandler(serviceProvider);

            //if(moduleCode == ModuleCodeType.Supplier)
            //    return new SupplierImportHandler(serviceProvider);

            //if (moduleCode == ModuleCodeType.Thirdparty)
            //    return new ThirdPartyImportHandler(serviceProvider);

            if (moduleCode == ModuleCodeType.Account)
                return new AccountImportHandler(serviceProvider);

            return null;
        }
    }
}
